From 99ae7882dadee6353f05eb4d4f53dddc0798de8e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Luk=C3=A1=C5=A1=20Tyrychtr?= Date: Thu, 9 Oct 2025 16:27:55 +0200 Subject: [PATCH] screenshot: Make screenshot tooltips label actors for their widgets This ensures that the buttons have a label from their tooltip if we do not have another label actor already (like from the icon label buttons). Because no button using a toolltip in this UI has a label on its own, this is not checked. Part-of: --- js/ui/screenshot.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index 4513ff287..209207710 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -83,6 +83,9 @@ class Tooltip extends St.Label { else this.close(); }); + + if (!this._widget.label_actor) + this._widget.label_actor = this; } open() { -- 2.39.5